#ifndef QAV_QPAINTERRENDERER_H
#define QAV_QPAINTERRENDERER_H

#include <QtAV/VideoRenderer.h>
#include <qimage.h>
//TODO: not abstract.
namespace QtAV {

class QPainterRendererPrivate;
class Q_AV_EXPORT QPainterRenderer : public VideoRenderer
{
    DPTR_DECLARE_PRIVATE(QPainterRenderer)
public:
    QPainterRenderer();
    virtual ~QPainterRenderer();
    virtual VideoRendererId id () const;
    virtual int filterContextType() const;
    //virtual QImage currentFrameImage() const;
protected:
    virtual void convertData(const QByteArray &data);
    QPainterRenderer(QPainterRendererPrivate& d);
};

} //namespace QtAV
#endif // QAV_QPAINTERRENDERER_H
